package day_02;

/**
 * @ClassName Test02
 * @Description TODO
 * @Author hp
 * @Date 2021/6/3 11:59
 * @Version 1.0
 **/
public class Test02 {
    public static void main(String[] args) {

        int m = 4;
        int n = 7;
        /*方法1
        int temp;
        temp = m;
        m = n;
        n = temp;*/

       /* 方法2
       m = m + n;
       n = m - n;
       m = m - n;
       */

       //方法3
       /* m = m ^ n;
       n = m ^ n;
       m = m ^ n;
       System.out.println(m);
       System.out.println(n);*/

    }

}
